<html>
 <head>
  <meta charset="utf-8"/>
  <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport"/>
  <title>
   Editor: 粉丝地图的可视化  | 数螺 | NAUT IDEA
  </title>
  <link href="http://cdn.bootcss.com/bootstrap/3.3.6/css/bootstrap-theme.min.css" rel="stylesheet"/>
  <link href="http://cdn.bootcss.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet"/>
  <style type="text/css">
   #xmain img {
                  max-width: 100%;
                  display: block;
                  margin-top: 10px;
                  margin-bottom: 10px;
                }

                #xmain p {
                    line-height:150%;
                    font-size: 16px;
                    margin-top: 20px;
                }

                #xmain h2 {
                    font-size: 24px;
                }

                #xmain h3 {
                    font-size: 20px;
                }

                #xmain h4 {
                    font-size: 18px;
                }


                .header {
	           background-color: #0099ff;
	           color: #ffffff;
	           margin-bottom: 20px;
	        }

	        .header p {
                  margin: 0px;
                  padding: 10px 0;
                  display: inline-block;  
                  vertical-align: middle;
                  font-size: 16px;
               }

               .header a {
                 color: white;
               }

              .header img {
                 height: 25px;
              }
  </style>
  <script src="http://cdn.bootcss.com/jquery/3.0.0/jquery.min.js">
  </script>
  <script src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript">
   MathJax.Hub.Config({
          tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]},
          TeX: {equationNumbers: {autoNumber: "AMS"}}
        });
  </script>
  <script src="http://nautstatic-10007657.file.myqcloud.com/static/css/readability.min.js" type="text/javascript">
  </script>
  <script type="text/javascript">
   $(document).ready(function() {
                 var loc = document.location;
                 var uri = {
                  spec: "http://cos.name/2013/06/weibo-fans-map-visualization/",
                  host: "http://cos.name",
                  prePath: "http://cos.name",
                  scheme: "http",
                  pathBase: "http://cos.name/"
                 };
    
                 var documentClone = document.cloneNode(true);
                 var article = new Readability(uri, documentClone).parse();
     
                 document.getElementById("xmain").innerHTML = article.content;
                });
  </script>
  <!-- 1466442046: Accept with keywords: (title(0.142857142857):粉丝,门户网站,地图,统计学,可视化,服务平台,中国, topn(0.233333333333):软件应用,统计图,信息,统计学,R语言,数据挖掘,和线,图形,效果图,主站,中文论坛,可视化,文章,时间序列,名人,绘制,动画,粉丝,编辑部,整理,彩带,会议,经纬度,错误,作图,方法,地图,评论,论坛,观瞻).-->
 </head>
 <body class="single single-post postid-7855 single-format-standard sidebar" onload="">
  <div class="header">
   <div class="container">
    <div class="row">
     <div class="col-xs-6 col-sm-6 text-left">
      <a href="/databee">
       <img src="http://nautidea-10007657.cos.myqcloud.com/logo_white.png"/>
      </a>
      <a href="/databee">
       <p>
        数螺
       </p>
      </a>
     </div>
     <div class="hidden-xs col-sm-6 text-right">
      <p>
       致力于数据科学的推广和知识传播
      </p>
     </div>
    </div>
   </div>
  </div>
  <div class="container text-center">
   <h1>
    Editor: 粉丝地图的可视化
   </h1>
  </div>
  <div class="container" id="xmain">
   <div class="hfeed site" id="page">
    <header class="site-header" id="masthead" role="banner">
     <div id="cos-logo">
      <a href="http://cos.name/">
       <img src="http://cos.name/wp-content/themes/COS-kermesinus/images/headers/cos-logo.png"/>
      </a>
     </div>
     <div class="navbar" id="navbar">
      <nav class="navigation main-navigation" id="site-navigation" role="navigation">
       <h3 class="menu-toggle">
        菜单
       </h3>
       <a class="screen-reader-text skip-link" href="http://cos.name/2013/06/weibo-fans-map-visualization/#content" title="跳至内容">
        跳至内容
       </a>
       <div class="menu-%e6%88%91%e7%9a%84%e8%8f%9c%e5%8d%95-container">
        <ul class="nav-menu" id="menu-%e6%88%91%e7%9a%84%e8%8f%9c%e5%8d%95">
         <li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-home menu-item-4746" id="menu-item-4746">
          <a href="http://cos.name">
           主页
          </a>
         </li>
         <li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-has-children menu-item-8120" id="menu-item-8120">
          <a href="http://cos.name/cn">
           论坛
          </a>
          <ul class="sub-menu">
           <li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-8124" id="menu-item-8124">
            <a href="http://cos.name/cn/wp-login.php?action=register">
             论坛注册
            </a>
           </li>
           <li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-8125" id="menu-item-8125">
            <a href="http://cos.name/cn/wp-login.php">
             论坛登录
            </a>
           </li>
          </ul>
         </li>
         <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-8110" id="menu-item-8110">
          <a href="http://cos.name/books/">
           图书资料
          </a>
         </li>
         <li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-8112" id="menu-item-8112">
          <a href="http://cos.name/videos">
           视频教程
          </a>
         </li>
         <li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-8333" id="menu-item-8333">
          <a href="http://cos.name/salon/">
           统计沙龙
          </a>
         </li>
         <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-8111" id="menu-item-8111">
          <a href="http://cos.name/chinar/">
           R语言会议
          </a>
         </li>
         <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-8109" id="menu-item-8109">
          <a href="http://cos.name/training/">
           讲座与培训
          </a>
         </li>
         <li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-8115" id="menu-item-8115">
          <a href="http://cos.name/cn/forum/comprehensive/job/">
           招聘信息
          </a>
         </li>
         <li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-has-children menu-item-4780" id="menu-item-4780">
          <a href="http://cos.name/about">
           关于我们
          </a>
          <ul class="sub-menu">
           <li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-8113" id="menu-item-8113">
            <a href="http://cos.name/2008/11/how-to-work-with-cos/">
             加入我们
            </a>
           </li>
           <li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-8119" id="menu-item-8119">
            <a href="http://cos.name/donate/">
             赞助我们
            </a>
           </li>
           <li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-8114" id="menu-item-8114">
            <a href="http://cos.name/cn/forum/26">
             项目合作
            </a>
           </li>
          </ul>
         </li>
        </ul>
       </div>
       <form action="http://cos.name/" class="search-form" method="get" role="search">
        <label>
         <span class="screen-reader-text">
          搜索：
         </span>
        </label>
       </form>
      </nav>
      <!-- #site-navigation -->
     </div>
     <!-- #navbar -->
    </header>
    <!-- #masthead -->
    <div class="site-main" id="main">
     <div class="content-area" id="primary">
      <div class="site-content" id="content" role="main">
       <article class="post-7855 post type-post status-publish format-standard hentry category-graphics category-software tag-animation tag-ggmap tag-himsic tag-911 tag-621 tag-489 tag-1041 tag-690" id="post-7855">
        <header class="entry-header">
         <h1 class="entry-title">
          粉丝地图的可视化
         </h1>
         <div class="entry-meta">
          <span class="date">
           <a href="http://cos.name/2013/06/weibo-fans-map-visualization/" rel="bookmark" title="链向粉丝地图的可视化的固定链接">
            <time class="entry-date" datetime="2013-06-02T20:12:35+00:00">
             2013/06/02
            </time>
           </a>
          </span>
          <span class="categories-links">
           <a href="http://cos.name/category/software/graphics/" rel="category tag">
            统计图形
           </a>
           、
           <a href="http://cos.name/category/software/" rel="category tag">
            软件应用
           </a>
          </span>
          <span class="tags-links">
           <a href="http://cos.name/tag/animation/" rel="tag">
            animation
           </a>
           、
           <a href="http://cos.name/tag/ggmap/" rel="tag">
            ggmap
           </a>
           、
           <a href="http://cos.name/tag/himsic/" rel="tag">
            Himsic
           </a>
           、
           <a href="http://cos.name/tag/%e5%8f%af%e8%a7%86%e5%8c%96/" rel="tag">
            可视化
           </a>
           、
           <a href="http://cos.name/tag/%e5%9c%b0%e5%9b%be/" rel="tag">
            地图
           </a>
           、
           <a href="http://cos.name/tag/%e5%be%ae%e5%8d%9a/" rel="tag">
            微博
           </a>
           、
           <a href="http://cos.name/tag/%e7%a4%be%e4%ba%a4/" rel="tag">
            社交
           </a>
           、
           <a href="http://cos.name/tag/%e7%b2%89%e4%b8%9d/" rel="tag">
            粉丝
           </a>
          </span>
          <span class="author vcard">
           <a class="url fn n" href="http://cos.name/author/editor/" rel="author" title="查看所有由COS编辑部发布的文章">
            COS编辑部
           </a>
          </span>
         </div>
         <!-- .entry-meta -->
        </header>
        <!-- .entry-header -->
        <div class="entry-content">
         <p>
          Rweibo问世以来，我就对它的可视化感到兴趣盎然。通过它我们可以得到微博关注者的各项信息，其中比较有意思的一项是地点(location)，这也就意味着，通过关注者的location（省市），可以找到他们的地理分布信息，同时，又可以得到他们的粉丝数目信息（可以判断是否是“微博名人”）。所以，既然万事俱备，为什么不用它做个“粉丝地图”来展示个人的粉丝信息呢？通过如下五步，我便基本得到了我想要的效果。
         </p>
         <ol>
          <li>
           收集关注者的信息，整理地点信息；
          </li>
          <li>
           获取并整理经纬度信息；
          </li>
          <li>
           结合Himsic与ggmap包绘制图形；
          </li>
          <li>
           结合animation包绘制动态图形。
          </li>
         </ol>
         <h2>
          1. 收集关注者的信息，整理location信息
         </h2>
         <p>
          首先，收集关注者的信息，并进行整理，我的做法是去除在“海外”，或者所在地为“其他”的人群（如果市的信息为“其他”而省份不为“其他”，令它与省份相同）。整理工作的代码如下：
         </p>
         <pre><code class="hljs nginx"><span class="hljs-attribute">roauth</span> &lt; - createOAuth(app_name = <span class="hljs-string">"pudding"</span>, access_name = <span class="hljs-string">"rweibo"</span>)
my_fri &lt;- friendships.friends(roauth, uid = <span class="hljs-number">2530951134</span>, count = <span class="hljs-number">200</span>, cursor = <span class="hljs-number">0</span>)
save(my_fri, file = <span class="hljs-string">"my_fri.rda"</span>)
fri = my_fri[[<span class="hljs-number">1</span>]]
<span class="hljs-literal">info</span>1=lapply(fri,function(x) c(x<span class="hljs-variable">$name</span>,x<span class="hljs-variable">$location</span>,x<span class="hljs-variable">$followers_count</span>))
<span class="hljs-literal">info</span>=do.call(rbind,<span class="hljs-literal">info</span>1)
loc=strsplit(<span class="hljs-literal">info</span>[,<span class="hljs-number">2</span>],<span class="hljs-string">" "</span>)
a=do.call(rbind,loc)
a[,<span class="hljs-number">1</span>][a[,<span class="hljs-number">1</span>]==<span class="hljs-string">"台湾"</span>]=<span class="hljs-string">"台"</span>
a[,<span class="hljs-number">2</span>][a[,<span class="hljs-number">2</span>]==<span class="hljs-string">"台湾"</span>]=<span class="hljs-string">"台"</span>
a[,<span class="hljs-number">2</span>][a[,<span class="hljs-number">2</span>]==<span class="hljs-string">"其他"</span>]=a[,<span class="hljs-number">1</span>][a[,<span class="hljs-number">2</span>]==<span class="hljs-string">"其他"</span>]
 
myfri=data.frame(name=<span class="hljs-literal">info</span>[,<span class="hljs-number">1</span>],province=a[,<span class="hljs-number">1</span>],city=a[,<span class="hljs-number">2</span>],loc=apply(a,<span class="hljs-number">1</span>,paste,collapse=<span class="hljs-string">" "</span>)
 ,follower=as.numeric(<span class="hljs-literal">info</span>[,<span class="hljs-number">3</span>]))
myfri=myfri[which(myfri<span class="hljs-variable">$province</span>!=<span class="hljs-string">"其他"</span>&amp;myfri<span class="hljs-variable">$province</span>!=<span class="hljs-string">"海外"</span>),]</code></pre>
         <h2>
          2. 获取并整理经纬度信息
         </h2>
         <p>
          不过，有了地理位置的名称是不够的，我们必须知道他们的经纬度信息，这一部分信息可以通过网页抓取而得：
         </p>
         <pre><code class="hljs php">library(XML)
<span class="hljs-comment"># get data from web</span>
webpage &lt; - <span class="hljs-string">"http://blog.csdn.net/svrsimon/article/details/8255051"</span>
tables &lt;- readHTMLTable(webpage, stringsAsFactors = <span class="hljs-keyword">FALSE</span>)
raw &lt;- tables[[<span class="hljs-number">1</span>]]
zh_posi &lt;- raw[<span class="hljs-number">-1</span>, ]
colnames(zh_posi) = c(<span class="hljs-string">"province"</span>, <span class="hljs-string">"city"</span>, <span class="hljs-string">"county"</span>, <span class="hljs-string">"lon"</span>, <span class="hljs-string">"lat"</span>)
save(zh_posi, file = <span class="hljs-string">"zh_posi.rda"</span>)
zh_posi$loc = apply(zh_posi[, <span class="hljs-number">1</span>:<span class="hljs-number">3</span>], <span class="hljs-number">1</span>, paste, collapse = <span class="hljs-string">" "</span>)
zh_posi[, <span class="hljs-number">4</span>:<span class="hljs-number">5</span>] = apply(zh_posi[, <span class="hljs-number">4</span>:<span class="hljs-number">5</span>], <span class="hljs-number">2</span>, <span class="hljs-keyword">as</span>.numeric)

get.loc &lt;- <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(loc)</span> </span>{
    pro = grepl(loc[<span class="hljs-number">1</span>], zh_posi$loc)
    cit = grepl(loc[<span class="hljs-number">2</span>], zh_posi$loc)
    match = which(pro &amp; cit)
    show(match)
    <span class="hljs-keyword">return</span>(c(mean(zh_posi$lon[match]), mean(zh_posi$lat[match])))
}

b = apply(myfri[, <span class="hljs-number">2</span>:<span class="hljs-number">3</span>], <span class="hljs-number">1</span>, get.loc)
myfri$lon = b[<span class="hljs-number">1</span>, ]
myfri$lat = b[<span class="hljs-number">2</span>, ]</code></pre>
         <p>
          鉴于关注人数在某些地区过于集中，此处只取在这些地区的均值表示：
         </p>
         <pre><code>library(sqldf)
myfri2 = sqldf("select province,city, avg(lon) as m_lon,avg(lat) as m_lat, avg(follower) as m_fol from myfri group by province,city")
Encoding(myfri2$province) = "UTF-8"
Encoding(myfri2$city) = "UTF-8"
</code></pre>
         <p>
          <span id="more-7855">
          </span>
         </p>
         <h2>
          3. 结合Himsic与ggmap包绘制图形
         </h2>
         <p>
          作图，这里作图我借鉴了这位的
          <a href="http://cos.name/2013/06/weibo-fans-map-visualization/ http://quantifyingmemory.blogspot.com/2013/04/mapping-gdelt-data-in-r-and-some.html">
           作品
          </a>
          （需科学上网），做了一点小修改。感觉很漂亮，可惜我做出来没这么好效果。重点在于对边的画法，方法是根据地图的中心点决定线的弯曲程度和方向，这里用到Hmisc包的bezier函数，相当于过任意三个点画平滑曲线。
         </p>
         <pre><code>library(ggmap)
library(Hmisc)
edgeMaker </code></pre>
         <p>
          与ggmap组合，效果图就是下面这张彩图啦。各个彩带起点的位置正是我目前的方位（广东 广州），终点就是我关注的各位的方位啦，用彩带可以表示出我们的关注关系。至于点的大小和线的粗细表示什么呢，它们的size被我设置成与被关注者的粉丝数目成正比（也就是可以表示传说中的微博名人）。几个大的微博名人聚集地多位于中国东部沿海的大城市中，而我的好友们大多数也位于东部由山东到广东的范围内。
         </p>
         <pre><code>
china=get_map(location = c(lon = mean(myfri2$m_lon), lat = mean(myfri2$m_lat)), zoom=5,maptype= "roadmap")
p1=ggmap(china,extent='device',darken=0.2)
drawit&lt;-function(i){
 p=p1+geom_path(data=allEdges[1:i,], aes(x = x, y = y,group = Group, # Edges with gradient
 size=log(weight+1),color=Sequence),alpha=0.6,show_guide=F)+ # and taper
 scale_colour_gradient(low = "red3", high = "white", guide = "none")
 if (i&gt;=100)
 {
 p=p+geom_point(data=myfri2[1:floor(i/100),],aes(x=m_lon,y=m_lat,size=log(m_fol+1)*1.3),alpha=0.5,show_guide=F,colour = "black") +
 geom_point(data=myfri2[1:floor(i/100),],aes(x=m_lon,y=m_lat,size=(log(m_fol+1))),alpha=0.6,show_guide=F,colour="red3")
 }
 return(p)
}
print(drawit(3800))
</code></pre>
         <p>
          “
          <img src="http://farm9.staticflickr.com/8395/8708205712_fc5f4d397d.jpg"/>
          ”
         </p>
         <h2>
          4. 结合animation包绘制动态图形
         </h2>
         <p>
          用彩带表示还有一个有意思的地方就是可以用动画的形式呈现出我关注的顺序！用animation包做成gif形式就可以做到：
         </p>
         <pre><code>library(animation)
saveMovie({
    ani.options(interval = 0.1, convert = shQuote("C:/Program Files/ImageMagick-6.8.5-Q16/convert.exe"))
    for (i in seq(50, 3000, 50)) print(drawit(i))
})
</code></pre>
         <p>
          “
          <img src="http://www.puddingnnn.com/wp-content/uploads/2013/05/animation1.gif"/>
          ”
          <br/>
          可以看到我对微博名人的关注和对同学（粉丝较少的小点）的关注在时间上是有聚集效应的。为啥呢，这要感谢sina微博的推荐机制，它会把与你当前关注的同一“类别”的人群在你点击“关注”之后同时推送给你，于是你对这一类人的关注几乎就变成不分先后啦。
         </p>
         <blockquote>
          <p>
           注：本文来自COS论坛的PuddingNnn，原帖
           <a href="http://cos.name/cn/topic/110269" target="_blank">
            请见此处
           </a>
           。
           <br/>
           作者：朱雪宁，中山大学数学与应用数学专业（2009级）
           <br/>
           个人主页：Pudding (
           <a href="http://www.puddingnnn.com/" target="_blank">
            http://www.puddingnnn.com/
           </a>
           )
          </p>
         </blockquote>
         <div class="wumii-hook">
          <br/>
          <br/>
         </div>
        </div>
        <!-- .entry-content -->
        <footer class="entry-meta">
         <div class="author-info">
          <div class="author-avatar">
           <img src="http://sdn.geekzu.org/avatar/2fe058e9e383c85afa949b36e869432f?s=74&amp;d=monsterid&amp;r=g"/>
          </div>
          <!-- .author-avatar -->
          <div class="author-description">
           <h2 class="author-title">
            关于COS编辑部
           </h2>
           <p class="author-bio">
            本账户为COS编辑部公共账户，目前由朱雪宁任主编，王小宁任副主编，编辑有：冯璟烁、吴佳萍、张心雨、施涛、霍志骥、何通、冷静、尤晓斌、肖楠、邱怡轩、高涛、谢益辉等人，主要负责主站文章的规范化编辑以及相关论文、书籍、手册的整理、编纂、出版等工作。
            <a class="author-link" href="http://cos.name/author/editor/" rel="author">
             查看所有由COS编辑部发表的文章
             <span class="meta-nav">
              →
             </span>
            </a>
           </p>
          </div>
          <!-- .author-description -->
         </div>
         <!-- .author-info -->
        </footer>
        <!-- .entry-meta -->
       </article>
       <!-- #post -->
       <nav class="navigation post-navigation" role="navigation">
        <h1 class="screen-reader-text">
         文章导航
        </h1>
        <div class="nav-links">
         <a href="http://cos.name/2013/05/relationship-big-data-statistics/" rel="prev">
          <span class="meta-nav">
           ←
          </span>
          大数据时代和数据分析需求，统计还沾边吗？
         </a>
         <a href="http://cos.name/2013/06/interviewof-jeff-leek/" rel="next">
          COS访谈第二期：约翰·霍普金斯大学Jeff Leek
          <span class="meta-nav">
           →
          </span>
         </a>
        </div>
        <!-- .nav-links -->
       </nav>
       <!-- .navigation -->
       <div class="comments-area" id="comments">
        <h2 class="comments-title">
         《
         <span>
          粉丝地图的可视化
         </span>
         》有18个想法
        </h2>
        <ol class="comment-list">
         <li class="pingback even thread-even depth-1" id="comment-4336">
          <div class="comment-body">
           Pingback：
           <a class="url" href="http://www.puddingnnn.com/%e9%82%a3%e4%ba%9b%e5%b9%b4%ef%bc%8c%e4%b8%8e%e8%8b%a6%e9%80%bc%e5%b9%b6%e8%a1%8c%e7%9a%84%e6%97%a5%e5%ad%90/" rel="external nofollow">
            那些年，与苦逼并行的日子 | 他山
           </a>
          </div>
         </li>
         <!-- #comment-## -->
         <li class="comment odd alt thread-odd thread-alt depth-1 parent" id="comment-4355">
          <article class="comment-body" id="div-comment-4355">
           <footer class="comment-meta">
            <div class="comment-author vcard">
             <img src="http://sdn.geekzu.org/avatar/7969a4509f4093e8637e6bf70f3f7fc1?s=74&amp;d=monsterid&amp;r=g"/>
             <b class="fn">
              <a class="url" href="http://yishuo.org" rel="external nofollow">
               邓一硕
              </a>
             </b>
             <span class="says">
              说道：
             </span>
            </div>
            <!-- .comment-author -->
            <div class="comment-metadata">
             <a href="http://cos.name/2013/06/weibo-fans-map-visualization/#comment-4355">
              <time datetime="2013-06-08T08:27:02+00:00">
               2013/06/08 08:27
              </time>
             </a>
            </div>
            <!-- .comment-metadata -->
           </footer>
           <!-- .comment-meta -->
           <div class="comment-content">
            <p>
             这个备注，建议换成尾注。有碍观瞻。
            </p>
           </div>
           <!-- .comment-content -->
           <div class="reply">
            <a aria-label="回复给邓一硕" class="comment-reply-link" href="http://cos.name/2013/06/weibo-fans-map-visualization/?replytocom=4355#respond" onclick='return addComment.moveForm( "div-comment-4355", "4355", "respond", "7855" )' rel="nofollow">
             回复
            </a>
           </div>
          </article>
          <!-- .comment-body -->
          <ol class="children">
           <li class="comment byuser comment-author-yihui even depth-2 parent" id="comment-4362">
            <article class="comment-body" id="div-comment-4362">
             <footer class="comment-meta">
              <div class="comment-author vcard">
               <img src="http://sdn.geekzu.org/avatar/1022d8e6ebc94e8f6bca9a86cebe312a?s=74&amp;d=monsterid&amp;r=g"/>
               <b class="fn">
                <a class="url" href="http://yihui.name" rel="external nofollow">
                 谢益辉
                </a>
               </b>
               <span class="says">
                说道：
               </span>
              </div>
              <!-- .comment-author -->
              <div class="comment-metadata">
               <a href="http://cos.name/2013/06/weibo-fans-map-visualization/#comment-4362">
                <time datetime="2013-06-09T05:23:13+00:00">
                 2013/06/09 05:23
                </time>
               </a>
              </div>
              <!-- .comment-metadata -->
             </footer>
             <!-- .comment-meta -->
             <div class="comment-content">
              <p>
               这话说的……好歹是人家的自我介绍。也许有人就是来观瞻的呢。
              </p>
             </div>
             <!-- .comment-content -->
             <div class="reply">
              <a aria-label="回复给谢益辉" class="comment-reply-link" href="http://cos.name/2013/06/weibo-fans-map-visualization/?replytocom=4362#respond" onclick='return addComment.moveForm( "div-comment-4362", "4362", "respond", "7855" )' rel="nofollow">
               回复
              </a>
             </div>
            </article>
            <!-- .comment-body -->
            <ol class="children">
             <li class="comment odd alt depth-3" id="comment-4365">
              <article class="comment-body" id="div-comment-4365">
               <footer class="comment-meta">
                <div class="comment-author vcard">
                 <img src="http://sdn.geekzu.org/avatar/b49d125d112a01106b48a2fcda481c3e?s=74&amp;d=monsterid&amp;r=g"/>
                 <b class="fn">
                  <a class="url" href="http://blog.programet.org/" rel="external nofollow">
                   严酷的魔王
                  </a>
                 </b>
                 <span class="says">
                  说道：
                 </span>
                </div>
                <!-- .comment-author -->
                <div class="comment-metadata">
                 <a href="http://cos.name/2013/06/weibo-fans-map-visualization/#comment-4365">
                  <time datetime="2013-06-09T21:33:30+00:00">
                   2013/06/09 21:33
                  </time>
                 </a>
                </div>
                <!-- .comment-metadata -->
               </footer>
               <!-- .comment-meta -->
               <div class="comment-content">
                <p>
                 前来观瞻
                </p>
               </div>
               <!-- .comment-content -->
              </article>
              <!-- .comment-body -->
             </li>
             <!-- #comment-## -->
            </ol>
            <!-- .children -->
           </li>
           <!-- #comment-## -->
          </ol>
          <!-- .children -->
         </li>
         <!-- #comment-## -->
         <li class="comment even thread-even depth-1" id="comment-4366">
          <article class="comment-body" id="div-comment-4366">
           <footer class="comment-meta">
            <div class="comment-author vcard">
             <img src="http://sdn.geekzu.org/avatar/391780a30c59a27bdacdb7f505f128a9?s=74&amp;d=monsterid&amp;r=g"/>
             <b class="fn">
              mafing
             </b>
             <span class="says">
              说道：
             </span>
            </div>
            <!-- .comment-author -->
            <div class="comment-metadata">
             <a href="http://cos.name/2013/06/weibo-fans-map-visualization/#comment-4366">
              <time datetime="2013-06-09T23:27:28+00:00">
               2013/06/09 23:27
              </time>
             </a>
            </div>
            <!-- .comment-metadata -->
           </footer>
           <!-- .comment-meta -->
           <div class="comment-content">
            <p>
             今天晚上一直在尝试这个，完全是看到效果图之后才开始接触R的。苦逼得不晓得myfri里的m_fol 是从哪里来的  哭死了
            </p>
           </div>
           <!-- .comment-content -->
           <div class="reply">
            <a aria-label="回复给mafing" class="comment-reply-link" href="http://cos.name/2013/06/weibo-fans-map-visualization/?replytocom=4366#respond" onclick='return addComment.moveForm( "div-comment-4366", "4366", "respond", "7855" )' rel="nofollow">
             回复
            </a>
           </div>
          </article>
          <!-- .comment-body -->
         </li>
         <!-- #comment-## -->
         <li class="comment odd alt thread-odd thread-alt depth-1" id="comment-4367">
          <article class="comment-body" id="div-comment-4367">
           <footer class="comment-meta">
            <div class="comment-author vcard">
             <img src="http://sdn.geekzu.org/avatar/391780a30c59a27bdacdb7f505f128a9?s=74&amp;d=monsterid&amp;r=g"/>
             <b class="fn">
              mafing
             </b>
             <span class="says">
              说道：
             </span>
            </div>
            <!-- .comment-author -->
            <div class="comment-metadata">
             <a href="http://cos.name/2013/06/weibo-fans-map-visualization/#comment-4367">
              <time datetime="2013-06-09T23:35:26+00:00">
               2013/06/09 23:35
              </time>
             </a>
            </div>
            <!-- .comment-metadata -->
           </footer>
           <!-- .comment-meta -->
           <div class="comment-content">
            <p>
             错误出现于这一步…
             <br/>
             &gt; myfri2 = sqldf(“SELECT province,city, avg(lon) AS m_lon, avg(lat)
             <br/>
             +              AS m_lat, avg(follower)
             <br/>
             +              AS m_fol FROM myfri GROUP BY province,city”)
             <br/>
             错误于sqliteExecStatement(con, statement, bind.data) :
             <br/>
             RS-DBI driver: (error in statement: no such column: follower)
            </p>
           </div>
           <!-- .comment-content -->
           <div class="reply">
            <a aria-label="回复给mafing" class="comment-reply-link" href="http://cos.name/2013/06/weibo-fans-map-visualization/?replytocom=4367#respond" onclick='return addComment.moveForm( "div-comment-4367", "4367", "respond", "7855" )' rel="nofollow">
             回复
            </a>
           </div>
          </article>
          <!-- .comment-body -->
         </li>
         <!-- #comment-## -->
         <li class="comment even thread-even depth-1" id="comment-4368">
          <article class="comment-body" id="div-comment-4368">
           <footer class="comment-meta">
            <div class="comment-author vcard">
             <img src="http://sdn.geekzu.org/avatar/391780a30c59a27bdacdb7f505f128a9?s=74&amp;d=monsterid&amp;r=g"/>
             <b class="fn">
              mafing
             </b>
             <span class="says">
              说道：
             </span>
            </div>
            <!-- .comment-author -->
            <div class="comment-metadata">
             <a href="http://cos.name/2013/06/weibo-fans-map-visualization/#comment-4368">
              <time datetime="2013-06-09T23:53:03+00:00">
               2013/06/09 23:53
              </time>
             </a>
            </div>
            <!-- .comment-metadata -->
           </footer>
           <!-- .comment-meta -->
           <div class="comment-content">
            <p>
             貌似搞错了…一开始时as.numeric没转换成功…
            </p>
           </div>
           <!-- .comment-content -->
           <div class="reply">
            <a aria-label="回复给mafing" class="comment-reply-link" href="http://cos.name/2013/06/weibo-fans-map-visualization/?replytocom=4368#respond" onclick='return addComment.moveForm( "div-comment-4368", "4368", "respond", "7855" )' rel="nofollow">
             回复
            </a>
           </div>
          </article>
          <!-- .comment-body -->
         </li>
         <!-- #comment-## -->
         <li class="comment odd alt thread-odd thread-alt depth-1 parent" id="comment-4369">
          <article class="comment-body" id="div-comment-4369">
           <footer class="comment-meta">
            <div class="comment-author vcard">
             <img src="http://sdn.geekzu.org/avatar/391780a30c59a27bdacdb7f505f128a9?s=74&amp;d=monsterid&amp;r=g"/>
             <b class="fn">
              mafing
             </b>
             <span class="says">
              说道：
             </span>
            </div>
            <!-- .comment-author -->
            <div class="comment-metadata">
             <a href="http://cos.name/2013/06/weibo-fans-map-visualization/#comment-4369">
              <time datetime="2013-06-10T00:00:39+00:00">
               2013/06/10 00:00
              </time>
             </a>
            </div>
            <!-- .comment-metadata -->
           </footer>
           <!-- .comment-meta -->
           <div class="comment-content">
            <p>
             执行最后一步是貌似出现了这个错误…
             <br/>
             是因为drawit(i)这边的i值对我来说太大了吗？
             <br/>
             &gt; print(drawit(3800))
             <br/>
             警告信息：
             <br/>
             1: Removed 14 rows containing missing values (geom_path).
             <br/>
             2: Removed 8 rows containing missing values (geom_point).
             <br/>
             3: Removed 8 rows containing missing values (geom_point).
             <br/>
             错误于UseMethod(“depth”) : “depth”没有适用于”NULL”目标对象的方法
             <br/>
             错误于UseMethod(“depth”) : “depth”没有适用于”NULL”目标对象的方法
             <br/>
             错误: ‘UseMethod’不能这样使用
             <br/>
             错误于grid.Call.graphics(L_points, x$x, x$y, x$pch, x$size) :
             <br/>
             unprotect():只有1个保护项
            </p>
           </div>
           <!-- .comment-content -->
           <div class="reply">
            <a aria-label="回复给mafing" class="comment-reply-link" href="http://cos.name/2013/06/weibo-fans-map-visualization/?replytocom=4369#respond" onclick='return addComment.moveForm( "div-comment-4369", "4369", "respond", "7855" )' rel="nofollow">
             回复
            </a>
           </div>
          </article>
          <!-- .comment-body -->
          <ol class="children">
           <li class="comment byuser comment-author-editor bypostauthor even depth-2" id="comment-4370">
            <article class="comment-body" id="div-comment-4370">
             <footer class="comment-meta">
              <div class="comment-author vcard">
               <img src="http://sdn.geekzu.org/avatar/2fe058e9e383c85afa949b36e869432f?s=74&amp;d=monsterid&amp;r=g"/>
               <b class="fn">
                COS编辑部
               </b>
               <span class="says">
                说道：
               </span>
              </div>
              <!-- .comment-author -->
              <div class="comment-metadata">
               <a href="http://cos.name/2013/06/weibo-fans-map-visualization/#comment-4370">
                <time datetime="2013-06-10T00:19:02+00:00">
                 2013/06/10 00:19
                </time>
               </a>
              </div>
              <!-- .comment-metadata -->
             </footer>
             <!-- .comment-meta -->
             <div class="comment-content">
              <p>
               莫急，明天作者来回答！
              </p>
             </div>
             <!-- .comment-content -->
             <div class="reply">
              <a aria-label="回复给COS编辑部" class="comment-reply-link" href="http://cos.name/2013/06/weibo-fans-map-visualization/?replytocom=4370#respond" onclick='return addComment.moveForm( "div-comment-4370", "4370", "respond", "7855" )' rel="nofollow">
               回复
              </a>
             </div>
            </article>
            <!-- .comment-body -->
           </li>
           <!-- #comment-## -->
           <li class="comment odd alt depth-2" id="comment-4371">
            <article class="comment-body" id="div-comment-4371">
             <footer class="comment-meta">
              <div class="comment-author vcard">
               <img src="http://sdn.geekzu.org/avatar/436174399b7aaeb22c666bc623015a5c?s=74&amp;d=monsterid&amp;r=g"/>
               <b class="fn">
                <a class="url" href="http://www.puddingnnn.com" rel="external nofollow">
                 pudding
                </a>
               </b>
               <span class="says">
                说道：
               </span>
              </div>
              <!-- .comment-author -->
              <div class="comment-metadata">
               <a href="http://cos.name/2013/06/weibo-fans-map-visualization/#comment-4371">
                <time datetime="2013-06-10T00:28:17+00:00">
                 2013/06/10 00:28
                </time>
               </a>
              </div>
              <!-- .comment-metadata -->
             </footer>
             <!-- .comment-meta -->
             <div class="comment-content">
              <p>
               可能是因为标记的点在你获取的地图的经纬度之外，3800是个测试的数值，你可以换其他数值试一下；最后的gif动画也不是所有点的~
              </p>
             </div>
             <!-- .comment-content -->
             <div class="reply">
              <a aria-label="回复给pudding" class="comment-reply-link" href="http://cos.name/2013/06/weibo-fans-map-visualization/?replytocom=4371#respond" onclick='return addComment.moveForm( "div-comment-4371", "4371", "respond", "7855" )' rel="nofollow">
               回复
              </a>
             </div>
            </article>
            <!-- .comment-body -->
           </li>
           <!-- #comment-## -->
          </ol>
          <!-- .children -->
         </li>
         <!-- #comment-## -->
         <li class="comment even thread-even depth-1" id="comment-4379">
          <article class="comment-body" id="div-comment-4379">
           <footer class="comment-meta">
            <div class="comment-author vcard">
             <img src="http://sdn.geekzu.org/avatar/d19771d1bc21527d890897395a234423?s=74&amp;d=monsterid&amp;r=g"/>
             <b class="fn">
              <a class="url" href="http://dreamhunter.me" rel="external nofollow">
               Weicheng
              </a>
             </b>
             <span class="says">
              说道：
             </span>
            </div>
            <!-- .comment-author -->
            <div class="comment-metadata">
             <a href="http://cos.name/2013/06/weibo-fans-map-visualization/#comment-4379">
              <time datetime="2013-06-12T15:20:08+00:00">
               2013/06/12 15:20
              </time>
             </a>
            </div>
            <!-- .comment-metadata -->
           </footer>
           <!-- .comment-meta -->
           <div class="comment-content">
            <p>
             赞，好文章，最喜欢‘图文码’并茂的文章啦:D
            </p>
           </div>
           <!-- .comment-content -->
           <div class="reply">
            <a aria-label="回复给Weicheng" class="comment-reply-link" href="http://cos.name/2013/06/weibo-fans-map-visualization/?replytocom=4379#respond" onclick='return addComment.moveForm( "div-comment-4379", "4379", "respond", "7855" )' rel="nofollow">
             回复
            </a>
           </div>
          </article>
          <!-- .comment-body -->
         </li>
         <!-- #comment-## -->
         <li class="comment odd alt thread-odd thread-alt depth-1" id="comment-4413">
          <article class="comment-body" id="div-comment-4413">
           <footer class="comment-meta">
            <div class="comment-author vcard">
             <img src="http://sdn.geekzu.org/avatar/5713fb66e0fd9c0867e8de4edce15c21?s=74&amp;d=monsterid&amp;r=g"/>
             <b class="fn">
              badbye
             </b>
             <span class="says">
              说道：
             </span>
            </div>
            <!-- .comment-author -->
            <div class="comment-metadata">
             <a href="http://cos.name/2013/06/weibo-fans-map-visualization/#comment-4413">
              <time datetime="2013-06-19T16:02:49+00:00">
               2013/06/19 16:02
              </time>
             </a>
            </div>
            <!-- .comment-metadata -->
           </footer>
           <!-- .comment-meta -->
           <div class="comment-content">
            <p>
             第三部分用到了ggmap，那第二步获取经纬度就可以用里边geocode函数嘛
            </p>
           </div>
           <!-- .comment-content -->
           <div class="reply">
            <a aria-label="回复给badbye" class="comment-reply-link" href="http://cos.name/2013/06/weibo-fans-map-visualization/?replytocom=4413#respond" onclick='return addComment.moveForm( "div-comment-4413", "4413", "respond", "7855" )' rel="nofollow">
             回复
            </a>
           </div>
          </article>
          <!-- .comment-body -->
         </li>
         <!-- #comment-## -->
         <li class="comment even thread-even depth-1 parent" id="comment-4463">
          <article class="comment-body" id="div-comment-4463">
           <footer class="comment-meta">
            <div class="comment-author vcard">
             <img src="http://sdn.geekzu.org/avatar/3039a7e7c8e2a34c3a0835487664fa38?s=74&amp;d=monsterid&amp;r=g"/>
             <b class="fn">
              maxwu
             </b>
             <span class="says">
              说道：
             </span>
            </div>
            <!-- .comment-author -->
            <div class="comment-metadata">
             <a href="http://cos.name/2013/06/weibo-fans-map-visualization/#comment-4463">
              <time datetime="2013-06-29T12:47:11+00:00">
               2013/06/29 12:47
              </time>
             </a>
            </div>
            <!-- .comment-metadata -->
           </footer>
           <!-- .comment-meta -->
           <div class="comment-content">
            <p>
             myfri = data.frame(name = info[, 1],province=a[, 1],city=a[, 2],
             <br/>
             loc = apply(a, 1, paste, collapse = ” “,
             <br/>
             follower = as.numeric(info[, 3]))
             <br/>
             结尾少了个“）”
            </p>
           </div>
           <!-- .comment-content -->
           <div class="reply">
            <a aria-label="回复给maxwu" class="comment-reply-link" href="http://cos.name/2013/06/weibo-fans-map-visualization/?replytocom=4463#respond" onclick='return addComment.moveForm( "div-comment-4463", "4463", "respond", "7855" )' rel="nofollow">
             回复
            </a>
           </div>
          </article>
          <!-- .comment-body -->
          <ol class="children">
           <li class="comment odd alt depth-2 parent" id="comment-4464">
            <article class="comment-body" id="div-comment-4464">
             <footer class="comment-meta">
              <div class="comment-author vcard">
               <img src="http://sdn.geekzu.org/avatar/3039a7e7c8e2a34c3a0835487664fa38?s=74&amp;d=monsterid&amp;r=g"/>
               <b class="fn">
                maxwu
               </b>
               <span class="says">
                说道：
               </span>
              </div>
              <!-- .comment-author -->
              <div class="comment-metadata">
               <a href="http://cos.name/2013/06/weibo-fans-map-visualization/#comment-4464">
                <time datetime="2013-06-29T13:41:41+00:00">
                 2013/06/29 13:41
                </time>
               </a>
              </div>
              <!-- .comment-metadata -->
             </footer>
             <!-- .comment-meta -->
             <div class="comment-content">
              <p>
               allEdges &lt;- do.call(rbind, allEdges)[/code]
               <br/>
               多了个[/code]
              </p>
             </div>
             <!-- .comment-content -->
             <div class="reply">
              <a aria-label="回复给maxwu" class="comment-reply-link" href="http://cos.name/2013/06/weibo-fans-map-visualization/?replytocom=4464#respond" onclick='return addComment.moveForm( "div-comment-4464", "4464", "respond", "7855" )' rel="nofollow">
               回复
              </a>
             </div>
            </article>
            <!-- .comment-body -->
            <ol class="children">
             <li class="comment even depth-3" id="comment-4466">
              <article class="comment-body" id="div-comment-4466">
               <footer class="comment-meta">
                <div class="comment-author vcard">
                 <img src="http://sdn.geekzu.org/avatar/3039a7e7c8e2a34c3a0835487664fa38?s=74&amp;d=monsterid&amp;r=g"/>
                 <b class="fn">
                  maxwu
                 </b>
                 <span class="says">
                  说道：
                 </span>
                </div>
                <!-- .comment-author -->
                <div class="comment-metadata">
                 <a href="http://cos.name/2013/06/weibo-fans-map-visualization/#comment-4466">
                  <time datetime="2013-06-29T14:31:36+00:00">
                   2013/06/29 14:31
                  </time>
                 </a>
                </div>
                <!-- .comment-metadata -->
               </footer>
               <!-- .comment-meta -->
               <div class="comment-content">
                <p>
                 成功运行了，感谢PuddingNnn
                 <br/>
                 另外貌似还要装个ImageMagick软件
                </p>
               </div>
               <!-- .comment-content -->
              </article>
              <!-- .comment-body -->
             </li>
             <!-- #comment-## -->
            </ol>
            <!-- .children -->
           </li>
           <!-- #comment-## -->
           <li class="comment byuser comment-author-editor bypostauthor odd alt depth-2" id="comment-4465">
            <article class="comment-body" id="div-comment-4465">
             <footer class="comment-meta">
              <div class="comment-author vcard">
               <img src="http://sdn.geekzu.org/avatar/2fe058e9e383c85afa949b36e869432f?s=74&amp;d=monsterid&amp;r=g"/>
               <b class="fn">
                COS编辑部
               </b>
               <span class="says">
                说道：
               </span>
              </div>
              <!-- .comment-author -->
              <div class="comment-metadata">
               <a href="http://cos.name/2013/06/weibo-fans-map-visualization/#comment-4465">
                <time datetime="2013-06-29T14:05:16+00:00">
                 2013/06/29 14:05
                </time>
               </a>
              </div>
              <!-- .comment-metadata -->
             </footer>
             <!-- .comment-meta -->
             <div class="comment-content">
              <p>
               谢谢您的提醒，我在这里给大家道个歉，另外我会马上修改的，谢谢啦！
              </p>
             </div>
             <!-- .comment-content -->
             <div class="reply">
              <a aria-label="回复给COS编辑部" class="comment-reply-link" href="http://cos.name/2013/06/weibo-fans-map-visualization/?replytocom=4465#respond" onclick='return addComment.moveForm( "div-comment-4465", "4465", "respond", "7855" )' rel="nofollow">
               回复
              </a>
             </div>
            </article>
            <!-- .comment-body -->
           </li>
           <!-- #comment-## -->
          </ol>
          <!-- .children -->
         </li>
         <!-- #comment-## -->
         <li class="comment even thread-odd thread-alt depth-1" id="comment-5497">
          <article class="comment-body" id="div-comment-5497">
           <footer class="comment-meta">
            <div class="comment-author vcard">
             <img src="http://sdn.geekzu.org/avatar/e2678a4f7b033908e7bfb9fc36fc8b69?s=74&amp;d=monsterid&amp;r=g"/>
             <b class="fn">
              sette
             </b>
             <span class="says">
              说道：
             </span>
            </div>
            <!-- .comment-author -->
            <div class="comment-metadata">
             <a href="http://cos.name/2013/06/weibo-fans-map-visualization/#comment-5497">
              <time datetime="2014-04-04T21:13:47+00:00">
               2014/04/04 21:13
              </time>
             </a>
            </div>
            <!-- .comment-metadata -->
           </footer>
           <!-- .comment-meta -->
           <div class="comment-content">
            <p>
             Error in if ((distance1 &lt; sum((graphCenter – c(toC  , fromC  ))^2)) ==  :
             <br/>
             missing value where TRUE/FALSE needed
             <br/>
             这是什么原因？
            </p>
           </div>
           <!-- .comment-content -->
           <div class="reply">
            <a aria-label="回复给sette" class="comment-reply-link" href="http://cos.name/2013/06/weibo-fans-map-visualization/?replytocom=5497#respond" onclick='return addComment.moveForm( "div-comment-5497", "5497", "respond", "7855" )' rel="nofollow">
             回复
            </a>
           </div>
          </article>
          <!-- .comment-body -->
         </li>
         <!-- #comment-## -->
         <li class="comment odd alt thread-even depth-1" id="comment-5515">
          <article class="comment-body" id="div-comment-5515">
           <footer class="comment-meta">
            <div class="comment-author vcard">
             <img src="http://sdn.geekzu.org/avatar/e2678a4f7b033908e7bfb9fc36fc8b69?s=74&amp;d=monsterid&amp;r=g"/>
             <b class="fn">
              sette
             </b>
             <span class="says">
              说道：
             </span>
            </div>
            <!-- .comment-author -->
            <div class="comment-metadata">
             <a href="http://cos.name/2013/06/weibo-fans-map-visualization/#comment-5515">
              <time datetime="2014-04-12T02:24:43+00:00">
               2014/04/12 02:24
              </time>
             </a>
            </div>
            <!-- .comment-metadata -->
           </footer>
           <!-- .comment-meta -->
           <div class="comment-content">
            <p>
             点的大小和线的粗细是代表他们的粉丝数，那怎么看粉丝在一个地区分布的多少呢？
            </p>
           </div>
           <!-- .comment-content -->
           <div class="reply">
            <a aria-label="回复给sette" class="comment-reply-link" href="http://cos.name/2013/06/weibo-fans-map-visualization/?replytocom=5515#respond" onclick='return addComment.moveForm( "div-comment-5515", "5515", "respond", "7855" )' rel="nofollow">
             回复
            </a>
           </div>
          </article>
          <!-- .comment-body -->
         </li>
         <!-- #comment-## -->
        </ol>
        <!-- .comment-list -->
        <div class="comment-respond" id="respond">
         <h3 class="comment-reply-title" id="reply-title">
          发表评论
          <small>
           <a href="http://cos.name/2013/06/weibo-fans-map-visualization/#respond" id="cancel-comment-reply-link" rel="nofollow" style="display:none;">
            取消回复
           </a>
          </small>
         </h3>
         <form action="http://cos.name/wp-comments-post.php" class="comment-form" id="commentform" method="post" novalidate="">
          <p class="comment-notes">
           <span id="email-notes">
            电子邮件地址不会被公开。
           </span>
           必填项已用
           <span class="required">
            *
           </span>
           标注
          </p>
          <p class="comment-form-comment">
           <label for="comment">
            评论
           </label>
           <textarea aria-required="true" cols="45" id="comment" maxlength="65525" name="comment" required="required" rows="8">
           </textarea>
          </p>
          <p class="comment-form-author">
           <label for="author">
            姓名
            <span class="required">
             *
            </span>
           </label>
          </p>
          <p class="comment-form-email">
           <label for="email">
            电子邮件
            <span class="required">
             *
            </span>
           </label>
          </p>
          <p class="comment-form-url">
           <label for="url">
            站点
           </label>
          </p>
          <p class="form-submit">
          </p>
          <p style="display: none;">
          </p>
          <p style="display: none;">
          </p>
         </form>
        </div>
        <!-- #respond -->
       </div>
       <!-- #comments -->
      </div>
      <!-- #content -->
     </div>
     <!-- #primary -->
     <div class="sidebar-container" id="tertiary" role="complementary">
      <div class="sidebar-inner">
       <div class="widget-area">
        <aside class="widget widget_text" id="text-3">
         <h3 class="widget-title">
          关注统计之都
         </h3>
         <div class="textwidget">
          <ul>
           <li>
            新浪微博
            <a href="http://weibo.com/cosname">
             @统计之都
            </a>
           </li>
           <li>
            人人网
            <a href="http://renren.com/cosname">
             @统计之都
            </a>
           </li>
           <li>
            Twitter
            <a href="http://twitter.com/cos_name">
             @cos_name
            </a>
           </li>
          </ul>
         </div>
        </aside>
        <aside class="widget widget_text" id="text-6">
         <h3 class="widget-title">
          微信公众平台
         </h3>
         <div class="textwidget">
          <img src="http://cos.name/wp-content/uploads/2013/04/qrcode-8cm.jpg"/>
          <p style="font-size:12px;margin-left:15px">
           微信号 CapStat
          </p>
          <p>
           我们将第一时间向您推送主站和论坛的精彩内容，以及统计之都的线下活动、竞赛、培训和会议信息。
          </p>
         </div>
        </aside>
        <aside class="widget widget_text" id="text-8">
         <h3 class="widget-title">
          站内导航
         </h3>
         <div class="textwidget">
          <ul>
           <li class="page_item">
            <a href="http://cos.name/cn/">
             中文论坛
            </a>
           </li>
           <li class="page_item">
            <a href="http://cos.name/videos/">
             视频
            </a>
           </li>
           <li class="page_item">
            <a href="http://cos.name/salon/">
             统计沙龙
            </a>
           </li>
           <li class="page_item">
            <a href="http://cos.name/books/">
             图书出版
            </a>
           </li>
           <li class="page_item">
            <a href="http://cos.name/training/">
             教育培训
            </a>
           </li>
           <li class="page_item">
            <a href="http://cos.name/about/">
             关于我们
            </a>
           </li>
           <li class="page_item">
            <a href="http://cos.name/donate/">
             捐赠
            </a>
           </li>
           <li class="page_item">
            <a href="http://cos.name/chinar/">
             R语言会议
            </a>
           </li>
          </ul>
         </div>
        </aside>
        <aside class="widget widget_links" id="linkcat-2">
         <h3 class="widget-title">
          友情链接
         </h3>
         <ul class="xoxo blogroll">
          <li>
           <a href="http://stat.ruc.edu.cn" target="_blank" title="中国人民大学统计学院网站">
            中国人民大学统计学院
           </a>
          </li>
          <li>
           <a href="http://rucdmc.net">
            中国人民大学数据挖掘中心
           </a>
          </li>
          <li>
           <a href="http://birc.gsm.pku.edu.cn/" target="_blank">
            北京大学商务智能研究中心
           </a>
          </li>
          <li>
           <a href="http://sam.cufe.edu.cn/" target="_blank" title="中央财经大学统计与数学学院网站">
            中央财经大学统计与数学学院
           </a>
          </li>
          <li>
           <a href="http://tjx.cueb.edu.cn/" target="_blank" title="首都经济贸易大学统计学院网站">
            首经贸统计学院
           </a>
          </li>
          <li>
           <a href="http://www.shookr.com/">
            数客网大数据社区
           </a>
          </li>
          <li>
           <a href="http://www.xueqing.tv/" target="_blank" title="数据科学在线学习平台">
            雪晴数据网
           </a>
          </li>
          <li>
           <a href="http://iera.name/" target="_blank" title="IERA是一个旨在普及、传播和增进工业工程知识的非营利性网站">
            IERA（直通IE）
           </a>
          </li>
         </ul>
        </aside>
        <aside class="widget widget_categories" id="categories-2">
         <h3 class="widget-title">
          全部分类
         </h3>
         <label class="screen-reader-text" for="cat">
          全部分类
         </label>
         <select class="postform" id="cat" name="cat">
          <option value="-1">
           选择分类目录
          </option>
          <option class="level-0" value="925">
           cos访谈  (4)
          </option>
          <option class="level-0" value="659">
           图书出版  (5)
          </option>
          <option class="level-0" value="379">
           数学方法  (14)
          </option>
          <option class="level-1" value="381">
           分析与代数  (1)
          </option>
          <option class="level-1" value="380">
           概率论  (9)
          </option>
          <option class="level-1" value="382">
           随机过程  (5)
          </option>
          <option class="level-0" value="210">
           数据分析  (81)
          </option>
          <option class="level-1" value="203">
           多元统计  (3)
          </option>
          <option class="level-1" value="42">
           数据挖掘与机器学习  (42)
          </option>
          <option class="level-1" value="36">
           生物与医学统计  (17)
          </option>
          <option class="level-1" value="35">
           计量经济学  (4)
          </option>
          <option class="level-1" value="296">
           金融统计  (3)
          </option>
          <option class="level-1" value="303">
           风险精算  (7)
          </option>
          <option class="level-0" value="177">
           模型专题  (15)
          </option>
          <option class="level-1" value="38">
           回归分析  (10)
          </option>
          <option class="level-1" value="41">
           时间序列  (2)
          </option>
          <option class="level-0" value="784">
           每周精选  (24)
          </option>
          <option class="level-1" value="183">
           可视化  (9)
          </option>
          <option class="level-0" value="967">
           沙龙纪要  (3)
          </option>
          <option class="level-0" value="18">
           经典理论  (46)
          </option>
          <option class="level-1" value="37">
           抽样调查  (3)
          </option>
          <option class="level-1" value="4">
           统计推断  (26)
          </option>
          <option class="level-1" value="236">
           试验设计  (7)
          </option>
          <option class="level-1" value="39">
           非参数统计  (3)
          </option>
          <option class="level-0" value="1">
           统计之都  (279)
          </option>
          <option class="level-1" value="884">
           中国R会议  (2)
          </option>
          <option class="level-1" value="885">
           中国R语言会议  (5)
          </option>
          <option class="level-1" value="446">
           出国留学  (3)
          </option>
          <option class="level-1" value="179">
           推荐文章  (90)
          </option>
          <option class="level-1" value="3">
           新闻通知  (75)
          </option>
          <option class="level-1" value="263">
           统计刊物  (10)
          </option>
          <option class="level-1" value="174">
           网站导读  (40)
          </option>
          <option class="level-1" value="204">
           职业事业  (51)
          </option>
          <option class="level-1" value="213">
           高校课堂  (9)
          </option>
          <option class="level-0" value="178">
           统计计算  (28)
          </option>
          <option class="level-1" value="40">
           优化与模拟  (15)
          </option>
          <option class="level-1" value="43">
           贝叶斯方法  (6)
          </option>
          <option class="level-0" value="378">
           软件应用  (116)
          </option>
          <option class="level-1" value="44">
           统计图形  (36)
          </option>
          <option class="level-1" value="110">
           统计软件  (83)
          </option>
         </select>
        </aside>
        <aside class="widget widget_recent_comments" id="recent-comments-2">
         <h3 class="widget-title">
          最新评论
         </h3>
         <ul id="recentcomments">
          <li class="recentcomments">
           <span class="comment-author-link">
            fineboom
           </span>
           发表在《
           <a href="http://cos.name/2016/06/use-shiny-fleetly-set-up-visual-prototype-system/#comment-7317">
            利用shiny包快速搭建可视化原型系统
           </a>
           》
          </li>
          <li class="recentcomments">
           <span class="comment-author-link">
            胡家新
           </span>
           发表在《
           <a href="http://cos.name/2016/06/r%e8%af%ad%e5%8d%83%e5%af%bb%e7%ac%ac%e4%b8%89%e6%9c%9f%ef%bc%9a%e5%bc%a0%e6%97%a0%e5%bf%8c%e7%a9%b6%e7%ab%9f%e7%88%b1%e8%b0%81%ef%bc%9f/#comment-7316">
            R语千寻第三期：张无忌究竟爱谁？
           </a>
           》
          </li>
          <li class="recentcomments">
           <span class="comment-author-link">
            <a class="url" href="http://www.zijiacha.com/category.php?id=6" rel="external nofollow">
             南糯山普洱茶
            </a>
           </span>
           发表在《
           <a href="http://cos.name/2016/06/r%e8%af%ad%e5%8d%83%e5%af%bb%e7%ac%ac%e4%b8%89%e6%9c%9f%ef%bc%9a%e5%bc%a0%e6%97%a0%e5%bf%8c%e7%a9%b6%e7%ab%9f%e7%88%b1%e8%b0%81%ef%bc%9f/#comment-7315">
            R语千寻第三期：张无忌究竟爱谁？
           </a>
           》
          </li>
          <li class="recentcomments">
           <span class="comment-author-link">
            J
           </span>
           发表在《
           <a href="http://cos.name/2016/05/value-of-the-reputation-from-the-data/#comment-7314">
            数据告诉你：高信誉的卖家应该收高价，还是收低价？
           </a>
           》
          </li>
          <li class="recentcomments">
           <span class="comment-author-link">
            <a class="url" href="http://gg" rel="external nofollow">
             Hilda
            </a>
           </span>
           发表在《
           <a href="http://cos.name/2013/01/drawing-map-in-r-era/#comment-7311">
            R时代，你要怎样画地图？
           </a>
           》
          </li>
         </ul>
        </aside>
        <aside class="widget widget_rss" id="rss-282869971">
         <h3 class="widget-title">
          <a class="rsswidget" href="http://cos.name/cn/topics/feed/">
           <img src="http://cos.name/wp-includes/images/rss.png"/>
          </a>
          <a class="rsswidget" href="http://cos.name/cn/topics/feed/">
           中文论坛新帖
          </a>
         </h3>
         <ul>
          <li>
           <a class="rsswidget" href="http://cos.name/cn/topic/417372/">
            处理时间数据和产生时间序列的问题
           </a>
          </li>
          <li>
           <a class="rsswidget" href="http://cos.name/cn/topic/6790/">
            《统计陷阱》下载 （How to lie with statistics）
           </a>
          </li>
          <li>
           <a class="rsswidget" href="http://cos.name/cn/topic/818/">
            统计学的世界（第五版）
           </a>
          </li>
          <li>
           <a class="rsswidget" href="http://cos.name/cn/topic/16574/">
            class(x) 返回值值是AsIs,AsIs代表什么，有什么用处？
           </a>
          </li>
          <li>
           <a class="rsswidget" href="http://cos.name/cn/topic/417366/">
            如何用R绘制一个分类算法的决策规则
           </a>
          </li>
         </ul>
        </aside>
        <aside class="widget widget_text" id="text-2">
         <h3 class="widget-title">
          登录/RSS
         </h3>
         <div class="textwidget">
          <ul>
           <li>
            <a href="http://cos.name/wp-admin/">
             登录
            </a>
           </li>
           <li>
            <a href="http://cos.name/feed/" title="使用 RSS 2.0 同步站点内容">
             文章
             <abbr title="Really Simple Syndication">
              RSS
             </abbr>
            </a>
           </li>
           <li>
            <a href="http://cos.name/comments/feed/" title="RSS 上的最近评论">
             评论
             <abbr title="Really Simple Syndication">
              RSS
             </abbr>
            </a>
           </li>
          </ul>
         </div>
        </aside>
       </div>
       <!-- .widget-area -->
      </div>
      <!-- .sidebar-inner -->
     </div>
     <!-- #tertiary -->
    </div>
    <!-- #main -->
    <footer class="site-footer" id="colophon" role="contentinfo">
     <div class="site-info">
      版权所有 © 2014 统计之都 | 由
      <a href="http://wordpress.org/">
       WordPress
      </a>
      构建 | 主题修改自
      <a href="http://wordpress.org/themes/twentythirteen">
       Twenty Thirteen
      </a>
     </div>
     <!-- .site-info -->
    </footer>
    <!-- #colophon -->
   </div>
   <!-- #page -->
   <p style="margin:0;padding:0;height:1px;overflow:hidden;">
    <a href="http://www.wumii.com/widget/relatedItems" style="border:0;">
     <img src="http://static.wumii.cn/images/pixel.png"/>
    </a>
   </p>
  </div>
 </body>
</html>